package com.coursehub.exercise.dto;

import jakarta.validation.constraints.Size;
import jakarta.validation.constraints.Min;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 练习更新数据传输对象
 */
@Data
public class ExerciseUpdateDto {
    
    @Size(max = 100, message = "练习名称长度不能超过100个字符")
    private String exerciseName;
    
    private LocalDateTime exerciseDeadline;
    
    private LocalDateTime exerciseStartTime;
    
    private Boolean isMultipleSubmission;
    
    @Min(value = 1, message = "练习总分必须大于0")
    private Integer exerciseScore;
}